# Take existing config
test -f .config || { echo "No .config file"; make tomo_defconfig; }
test -f .config || { echo "Can't generate .config file"; exit 1; }
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
make -j4
make CONFIG_PREFIX=./rootfs install
cp .config ./rootfs/busybox.config
cp /usr/arm-linux-gnueabi/lib/* ./rootfs/lib/

